<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;

class MiniRegisterRequest extends Request
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {

        return [
            //wx.login()的code，用于获取session_key
            'code'          =>'required|string',
            'rawData'       =>'required|json',
        ];
    }
}
